Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread safety p.3 #101

Merged
merged 9 commits into from
Dec 19, 2024
Merged

Thread safety p.3 #101

merged 9 commits into from
Dec 19, 2024

Conversation

d-tatianin
Copy link
Member

No description provided.

@d-tatianin d-tatianin force-pushed the thread-safety-p3 branch 6 times, most recently from 3a38b67 to 8045a59 Compare December 18, 2024 20:34
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
@d-tatianin d-tatianin force-pushed the thread-safety-p3 branch 3 times, most recently from 7bccb1a to 1b7f894 Compare December 19, 2024 22:32
Protect public interfaces with a mutex. When modifying event handlers,
make sure to mask them and wait for any in-flight IRQs to finish before
proceeding with modifications, then unmask after we're done.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
1. Make sure that the namespace is locked if possible
2. Don't forget to clean up the root object correctly

Move object detach logic into a separate helper to make this easier.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
@d-tatianin d-tatianin merged commit 99372ab into master Dec 19, 2024
8 checks passed
@d-tatianin d-tatianin deleted the thread-safety-p3 branch December 19, 2024 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant